import axios from 'axios';

const axiosInstance = axios.create({
  baseURL: 'http://82.157.53.213:8886/api/private/v1/',

})
axiosInstance.interceptors.request.use(config => {
  config.headers.authorization = sessionStorage.getItem('token')
  return config
})
axiosInstance.interceptors.response.use(
  res => {
    return res.data
  },
  err => {
    console.log('Internet error', err);
  }
)
export default axiosInstance